<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MCP Server Servlet</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 20px;
            color: #333;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        h1 {
            color: #2c3e50;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
        }
        .info {
            background-color: #e8f4f8;
            padding: 15px;
            border-left: 4px solid #3498db;
            margin: 20px 0;
        }
        code {
            background-color: #f0f0f0;
            padding: 2px 5px;
            border-radius: 3px;
            font-family: monospace;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>MCP Server Servlet</h1>

        <div class="info">
            <p>MCP (Model Context Protocol) 服务器已成功启动！</p>
            <p>这是一个基于纯Servlet实现的MCP服务器，无需Spring框架支持。</p>
        </div>

        <h2>可用工具</h2>
        <ul>
            <li><strong>getOrderDetail</strong> - 通过订单号获取订单详情信息</li>
        </ul>

        <h2>访问路径</h2>
        <p>MCP服务器访问路径: <code>/mcp/*</code></p>

        <h2>使用方法</h2>
        <p>客户端可以通过Server-Sent Events (SSE) 连接到 <code>/mcp/message</code> 端点与MCP服务器进行通信。</p>
    </div>
</body>
</html>
